Skip to main content
Version: 1.x.x

CacheValueType


import { CacheValueType } from "@hyper-fetch/core"

Description

Defined in cache/cache.types.ts:33

Preview

type CacheValueType<Response,Error> = {
cacheTime: number;
clearKey: string;
data: ClientResponseType<Response, Error>;
details: CommandResponseDetails;
garbageCollection: number;
}

Structure

{
cacheTime: number;
clearKey: string;
data: [GenericDataType | null, GenericErrorType | null, number | null];
details: {
isCanceled: boolean;
isFailed: boolean;
isOffline: boolean;
retries: number;
timestamp: number;
};
garbageCollection: number;
}